package com.qing.common.utils.json.validation;

/**
 * @author guoqf
 * @date 2023/10/17 11:24
 */
public  class Logger{

    private Class<?> clazz;
    public Logger(Class<?> clazz) {
        this.clazz = clazz;
    }
    public void error(String msg){
        System.out.println("[" + clazz.getSimpleName() + "]" + msg);
    }

    public void error(String msg, Exception e) {
        System.out.println("[" + clazz.getSimpleName() + "]" + msg);
        e.printStackTrace();
    }
}
